import api from '@/api/index.ts'

// 获取列表数据
export function GetData(params: any) {
  // console.log(params)
  return api.get(`/api/retail/list?${params}`)
}

// 追加订单备注
export function patchAddRemarks(params: any) {
  return api.patch(`/api/retail/modifyorderdescription`, params)
}

// 标记发货(同步订单地址)
export function patchMarkedDelivery(params: any) {
  return api.patch(`/api/retail/modifyorderexpressage`, params)
}

// 订单退款
export function PostRefund(params: any) {
  return api.post(`/api/retail/orderrefund`, params)
}

// 修改收货地址
export function PostModifyAddress(params: any) {
  return api.post(`/api/retail/modifyorderaddress`, params)
}
// 获取业绩列表数据
export function GetYejiData(params: any) {
  // console.log(params)
  return api.get(`/api/retail/yeji?${params ? `${params}` : ''}`)
}
// 获取商品业绩列表数据
export function GetSPYejiData(params: any) {
  return api.get(`/api/retail/spyeji`, { params })
}
